From 6c8075d2fb3c7835a626ca8eca1c058d09faeeb8 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 29 Nov 2006 20:47:02 +0000 Subject: [PATCH] Paul adds type identifiers to copilot. --- copilot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copilot.c b/copilot.c index 75412523a..98725740e 100644 --- a/copilot.c +++ b/copilot.c @@ -27,6 +27,7 @@ #define MYNAME "CoPilot Waypoint" #define wayp_TYPE 0x77617970 /* wayp */ +#define wayu_TYPE 0x77617975 /* wayu */ #define swpu_TYPE 0x73777075 /* swpu */ #define GXPU_CREATOR 0x47584255 /* GXBU */ #define AP_P_CREATOR 0x41502d50 /* AP-P */ @@ -218,7 +219,8 @@ data_read(void) } if ((pdb->creator != GXPU_CREATOR && pdb->creator != AP_P_CREATOR) || - (pdb->type != wayp_TYPE && pdb->type != swpu_TYPE)) { + (pdb->type != wayp_TYPE && pdb->type != swpu_TYPE && + pdb->type != wayu_TYPE)) { fatal(MYNAME ": Not a CoPilot file.\n"); } if (pdb->version > 4) { -- 2.30.2